import { createStore } from 'vuex'

export default createStore({
    state: {
        username: ''
    },
    mutations: {
        setusername(state, data) {
            localStorage.setItem('username', data)
            state.username = localStorage.getItem('username')
        }
    },
    actions: {},
    modules: {}
})